var _util = require("util/util.js");

var article = {
	//获取文章列表
	getArticlelist: function(data,resolve,reject){
		_util.request({
            url     : _util.getServerUrl('/article/list.do'),
            method  : 'POST',
            data	: data,
            success : resolve,
            error   : reject
        });
	},
    //获取文章详情
    getArticleDetail : function(data,resolve,reject){
        _util.request({
            url     : _util.getServerUrl('/article/detail.do'),
            method  : 'POST',
            data    : data,
            success : resolve,
            error   : reject
        });
    }
}

module.exports = article;